//
//  ATVInstanceBooleanProperty.m
//  FlashController
//
//  Created by Martin Schiøth Dyrby on 11/21/11.
//  Copyright 2011 Molamil. All rights reserved.
//

#import "ATVInstanceBooleanProperty.h"
#import "ATVBooleanPropertyViewController.h"
#import "ATVInstanceView.h"


@implementation ATVInstanceBooleanProperty

@synthesize name;
@synthesize type;
@synthesize path;
@synthesize viewController;
@synthesize isMethod;

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}

- (NSView *) initView {
    viewController = [[ATVBooleanPropertyViewController alloc] initWithNibName:@"ATVBooleanPropertyViewController" bundle:nil];
    [viewController setPath: path];
    return viewController.view;
}

- (void) drawView {
    [viewController drawFromModel:self];
}

- (NSComparisonResult) compare: (id<ATVInstanceProperty>) item {
    return [[item name] compare:name];
}


@end
